package com.scf.fruit.business.user.bo;

import com.github.pagehelper.PageHelper;
import com.scf.fruit.user.WxUserInfoDto;
import com.scf.fruit.user.WxUserInfoService;
import com.scf.fruit.util.ResponseVo;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author : 孙超飞
 * @title :
 * @description :
 * @copyright :
 * @date : 2018-05-21 17:46
 */
@Component
public class WXUserBo {
    @Resource
    private WxUserInfoService wxUserInfoService;

    public ResponseVo queryWXUserByPage(Integer pageNum,Integer length){
        ResponseVo res=new ResponseVo();
        PageHelper.startPage(pageNum,length,false);
        List<WxUserInfoDto> wxUserInfoDtos = wxUserInfoService.queryWXUser();
        res.setData(wxUserInfoDtos);
        return res;
    }
}
